﻿namespace SimpleX.System
{
    public class DevConfigSeedData : ISqlSugarEntitySeedData<DevConfig>
    {
        [IgnoreSeedDataUpdate]
        public IEnumerable<DevConfig> SeedData()
        {
            var SortCode = 1;
            var datas = new List<DevConfig>()
            {
                new DevConfig
                {
                    Id = "464564896820001",
                    ConfigKey = "SYS_DEFAULT_DESCRRIPTION",
                    ConfigValue = "SimpleX通用管理系统",
                    Category ="SYS_BASE",
                    Remark = "系统描述",
                    SortCode=SortCode++,
                },
                 new DevConfig
                {
                    Id = "464564896820002",
                    ConfigKey = "SYS_LOGO",
                    ConfigValue = "",
                    Category ="SYS_BASE",
                    Remark = "系统LOGO",
                    SortCode=SortCode++,
                }, new DevConfig
                {
                    Id = "464564896820003",
                    ConfigKey = "SYS_NAME",
                    ConfigValue = "SimpleX",
                    Category ="SYS_BASE",
                    Remark = "系统名称",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896820004",
                    ConfigKey = "SYS_VERSION",
                    ConfigValue = "V1.0.0",
                    Category ="SYS_BASE",
                    Remark = "系统版本",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896820005",
                    ConfigKey = "SYS_COPYRIGHT",
                    ConfigValue = "SimpleX ©2023",
                    Category ="SYS_BASE",
                    Remark = "系统版权",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896820006",
                    ConfigKey = "SYS_COPYRIGHT_URL",
                    ConfigValue = "https://gitee.com/handloong/SimpleX",
                    Category ="SYS_BASE",
                    Remark = "系统版权链接地址",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896820008",
                    ConfigKey = "SYS_DEFAULT_FILE_ENGINE",
                    ConfigValue = "LOCAL",
                    Category ="SYS_BASE",
                    Remark = "默认文件存储引擎",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896820009",
                    ConfigKey = "MQTT_PARAM_URL",
                    ConfigValue = "ws://127.0.0.1:8083/mqtt",
                    Category ="MQTT_BASE",
                    Remark = "MQTT服务端地址(ws)",
                    SortCode=SortCode++,
                },new DevConfig
				{
					Id = "464564896878955",
					ConfigKey = "MQTT_PARAM_SERVER",
					ConfigValue = "tcp://127.0.0.1:1883",
					Category ="MQTT_BASE",
					Remark = "MQTT服务端地址(tcp)",
					SortCode=SortCode++,
				},new DevConfig
                {
                    Id = "464564896830001",
                    ConfigKey = "MQTT_PARAM_USERNAME",
                    ConfigValue = "admin",
                    Category ="MQTT_BASE",
                    Remark = "MQTT用户名",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896830002",
                    ConfigKey = "MQTT_PARAM_PASSWORD",
                    ConfigValue = "admin",
                    Category ="MQTT_BASE",
                    Remark = "MQTT密码",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896830003",
                    ConfigKey = "FILE_LOCAL_FOLDER_FOR_WINDOWS",
                    ConfigValue = "C:/SimpleXUploadFolder",
                    Category ="FILE_LOCAL",
                    Remark = "本地文件Windows存储位置",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896830004",
                    ConfigKey = "FILE_LOCAL_FOLDER_FOR_UNIX",
                    ConfigValue = "/UploadFolder",
                    Category ="FILE_LOCAL",
                    Remark = "本地文件Linux存储位置",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896830005",
                    ConfigKey = "FILE_MINIO_ACCESS_KEY",
                    ConfigValue = "AccessKey",
                    Category ="FILE_MINIO",
                    Remark = "MINIO文件AccessKey",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896830006",
                    ConfigKey = "FILE_MINIO_SECRET_KEY",
                    ConfigValue = "SecetKey",
                    Category ="FILE_MINIO",
                    Remark = "MINIO文件SecetKey",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896830007",
                    ConfigKey = "FILE_MINIO_END_POINT",
                    ConfigValue = "EndPoint",
                    Category ="FILE_MINIO",
                    Remark = "MINIO文件EndPoint",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896830008",
                    ConfigKey = "FILE_MINIO_DEFAULT_BUCKET_NAME",
                    ConfigValue = "defaultbucket",
                    Category ="FILE_MINIO",
                    Remark = "MINIO文件默认存储桶",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896840001",
                    ConfigKey = "PDA_U_VERSION",
                    ConfigValue = "1.0",
                    Category ="PDA_UPDATE",
                    Remark = "MINIO文件默认存储桶",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896840002",
                    ConfigKey = "PDA_U_DOWNLOADURL",
                    ConfigValue = "http://127.0.0.1:8005/pda.apk",
                    Category ="PDA_UPDATE",
                    Remark = "MINIO文件默认存储桶",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896840003",
                    ConfigKey = "PDA_U_CONTENT",
                    ConfigValue = "更新了一些bug",
                    Category ="PDA_UPDATE",
                    Remark = "MINIO文件默认存储桶",
                    SortCode=SortCode++,
                },new DevConfig
                {
                    Id = "464564896840004",
                    ConfigKey = "SYS_DEFAULT_WORKBENCH_DATA",
                    ConfigValue = """{"shortcut":[{"id":"464564812340001","title":"个人中心","icon":"appstore-outlined","path":"/usercenter"}]}""",
                    Category ="SYS_BASE",
                    Remark = "系统版权链接地址",
                    SortCode=SortCode++,
                }
            };

            foreach (var item in datas)
            {
                item.CreateDate = DateTime.Now;
                item.CreateUserId = "Sys";
                item.CreateUserName = "Sys";
            }

            return datas;
        }
    }
}